package com.zjgsu.nftplatform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @author ahy231
 * @date 2022/3/4 12:02
 * @description
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("用户")
public class User {
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键")
    private Long id;
    @ApiModelProperty("用户名")
    private String name;
    @ApiModelProperty("密码")
    private String passwd;
    @ApiModelProperty("电话")
    private String phone;
    @ApiModelProperty("头像url")
    private String img;
    @ApiModelProperty("个性签名")
    private String signature;
    @ApiModelProperty("是否实名认证")
    private Boolean certification;
    @ApiModelProperty("余额")
    private BigDecimal assets;
    @ApiModelProperty("以太坊账户地址")
    private String address;
}
